package com.example.parkingproject.mapper;


import com.example.parkingproject.jopo.dto.AddAdminUserDto;
import com.example.parkingproject.jopo.dto.UpdateAdminUserDto;
import com.example.parkingproject.jopo.entity.AdminUser;
import com.example.parkingproject.jopo.vo.AdminLoginVo;
import com.example.parkingproject.jopo.vo.AdminUserVo;
import com.example.parkingproject.jopo.vo.UserLoginVo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AdminMapper {
    /*获取单个管理员对象*/
    AdminUserVo getAdminUserByCardId(String cardId);
    /*添加管理员*/
    void AddAdminUser(AdminUser adminUser);
    /*获取所有管理员用户集合*/
    List<AdminUserVo> AdminList();

    AdminUserVo getAdminByCard(String cardId);

    void updateAdminAll(UpdateAdminUserDto updateAdminUserDto);

    void deleteAdmin(String cardId);

    AdminLoginVo getAdminUserByUsername(String username);

    List<AdminUserVo> search(AddAdminUserDto addAdminUserDto);

    AdminUserVo getAdminById(Integer id);

    Integer changePermission(AdminUserVo adminUserVo);
}
